<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<style type="text/css">
			input{
				width: 400px;
			}
		</style>
	</head>
	<body>
		<h1>为了测试数据类中的数据转换</h1>
		<h4>填写一个数值和1200比较</h4>
		<input type="text" name="" id="" value="" placeholder="如果填的数字小1200，提示true，否则提示false"/>
		<button>比较</button>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		var num1 = "1200";
		$("button").on("click",function(){
			var input_val = $("input").val();
			console.log($.type(input_val));
			console.log($.type($("input").val()));
			if(Number(num1)>Number(input_val)){
				alert(num1+">"+input_val);
			}else{
				alert(num1+"<"+input_val);
				
			}
		})
		console.log(""==0);
	</script>
</html>
